import Vue from 'vue';
import Vuex from 'vuex';
import { ITagsViewState } from './modules/tags-view';
import { ICustom } from './modules/custom';
import { IUser } from './modules/user';

Vue.use(Vuex);

export interface IRootState {
    tagsView: ITagsViewState;
    custom: ICustom;
    user: IUser;
}

// 先声明空状态，然后动态生成对应状态
export default new Vuex.Store<IRootState>({});
